﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ESN.Languages.en
{
    public class Error
    {
        public static string Locale(string key)
        {
            Dictionary<string, string> d = new Dictionary<string, string>();
            d.Add("error", "An error occured when processing your request!");
            d.Add("user_not_found", "This user profile cannot be found!");
            d.Add("permission_cant", "Your do not have permission to take this action!");
            d.Add("permission_change_avt", "You do not have permission to change this member avatar!");
            d.Add("invalid_img_type", "The image type is not valid (allow: jpg, jpeg, png, gif).");
            d.Add("upload_failed", "Cannot upload your file, remember you can only upload Image and Documents (Portable Document Format (PDF) files, text files, and Microsoft Office files)");
            d.Add("not_exist", "The resource your are looking for donot exist!");
            d.Add("must_loggin", "You must loggin to take this action.");
            if (d.ContainsKey(key))
                return d[key];
            else
                return null;
        }
    }
}